import request from '@/utils/request.js'

// 投递简历
export function deliveryResume(data) {
	return request({
		url: '/delivery/create',
		method: 'POST',
		data
	})
}

// 获取投递岗位列表
export function getDeliveryJobList(data) {
	return request({
		url: '/delivery/job/list',
		method: 'GET',
		data
	})
}

// 获取投递状态
export function getDeliveryStatus(id) {
	return request({
		url: '/delivery/status/' + id,
		method: 'GET',
	})
}

// 获取投递用户信息列表
export function getDeliveryUserList(id) {
	return request({
		url: '/delivery/user/list/' + id,
		method: 'GET'
	})
}

// 更新状态
export function updateDeliveryStatus(data) {
	return request({
		url: '/delivery/update/status',
		method: 'PUT',
		data
	})
}